import http from "./http";
import qs from "qs";
// 修改状态
export const updateStatus = (params) => {
  return http.post("/manager/member/updateStatus", qs.stringify(params))
}
// 列表
export const page = (params) => {
  return http.get("/manager/member/page", params)
}
// 修改余额-充值
export const recharge = (params) => {
  return http.post("/manager/member/recharge", params)
}
// 修改余额-提款
export const draw = (params) => {
  return http.post("/manager/member/draw", params)
}
// 获取修改余额是否需要交易密码
export const checkTransPwd = (params) => {
  return http.get("/manager/member/checkTransPwd", params)
}
// 账变记录
export const balanceHistory = (params) => {
  return http.get("/manager/member/balanceHistory", params)
}
// 转账记录
export const transferPage = (params) => {
  return http.get("/manager/merchant/transferPage", params)
}
// 操作日志
export const operatorHistory = (params) => {
  return http.get("/manager/member/operatorHistory", params)
}
// 登录日志
export const loginHistory = (params) => {
  return http.get("/manager/member/loginHistory", params)
}
// 会员详情
export const getById = (params) => {
  return http.get("/manager/member/getById", params)
}
// 重置会员登录密码
export const resetLoginPassword = (params) => {
  return http.post("/manager/member/resetLoginPassword", qs.stringify(params))
}
// 重置会员属性-----/交易密码/真实姓名/身份证
export const resetProperty = (params) => {
  return http.post("/manager/member/resetProperty", qs.stringify(params))
}
// 修改用户信息
export const updateInfo = (params) => {
  return http.post("/manager/member/updateInfo", qs.stringify(params))
}





// 解绑收付款设置
export const delPayee = (params) => {
  return http.post("/manager/member/delPayee", qs.stringify(params))
}
// 校验用户名是否存在
export const checkName = (params) => {
  return http.get("/manager/member/checkName", params)
}
// eslint-disable-next-line import/no-anonymous-default-export
export default {
  updateStatus,
  updateInfo,
  resetProperty,
  resetLoginPassword,
  recharge,
  draw,
  delPayee,
  page,
  operatorHistory,
  loginHistory,
  getById,
  checkTransPwd,
  checkName,
  balanceHistory,
}